#include<stdio.h>
int main()
{
    int resu[7]={0};
    int x=0;
    scanf("%d",&x);
    int count=0;
     srand(x);
 for(int i=1;i<=60000000;i++)
 {

     count = rand()%6 + 1;
        resu[count]++;
 }
    printf("%4s %16s\n","Face","Frequency");
    for(int i=1;i<=6;i++)
    {
        printf("%4d%17d\n",i,resu[i]);
    }
return 0;
}
